/*
 * @Description: 
 * @Version: 1.0
 * @Autor: c-jack.qian
 * @Date: 2020-12-28 16:46:14
 * @LastEditors: c-jack.qian
 * @LastEditTime: 2021-04-09 15:49:33
 */
import { RoutersConfig } from 'hzero-boot/lib/typings/IRouterConfig';

import orderCheckRuleListPage from '../pages/order-check-rule/routers';
import customerOrderAttributeListPage from '../pages/customer-order-attribute/routers';
import distributionPlanPage from '../pages/distribution-plan/routers';
import requireGoodsPlanPage from '../pages/require-goods-plan/routers';
import distributionRusultPage from '../pages/distribution-result/routers';
import distributionAdjustmentPage from '../pages/distribution-adjustment/routers';
import orderDistributionPage from '../pages/order-distribution/routers';
import minOrderListPage from '../pages/min-order-amount-rule/routers';
import marginManagementPage from '../pages/margin-management/routers';
import specialProductDeliveryRulesPage from '../pages/special-product-delivery-rules/routers';
import shippingAutomationRulesPage from '../pages/shipping-automation-rules/routers';
import exportLicenseManagementPage from '../pages/export-license-management/routers';

import intl from 'utils/intl';
const config: RoutersConfig = [
  ...orderCheckRuleListPage,
  ...customerOrderAttributeListPage,
  ...distributionPlanPage,
  ...requireGoodsPlanPage,
  ...distributionRusultPage,
  ...distributionAdjustmentPage,
  ...orderDistributionPage,
  ...minOrderListPage,
  ...marginManagementPage,
  ...specialProductDeliveryRulesPage,
  ...shippingAutomationRulesPage,
  ...exportLicenseManagementPage,
  {
    path: '/hiam/comment-import/:code',
    component: () => import('./himp/CommentImport'),
    authorized: true,
  },
  {
    path: '/o2om/distribution/excel-import/:code',
    component: () => import('./himp/CommentImport'),
    authorized: true,
    title: intl.get('hzero.common.button.save.import').d('列表导入'),
  },
];

export default config;
